package com.pi.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//@Component
//@ConfigurationProperties(prefix = "app.license")


@Component
@ConfigurationProperties(prefix = "app.lic")
public class LicenseProperties {
    // 加密文件路径
    private String filePath;

    // 解密后的值将存储在这里
    private String key;
    private String expiryDate;

    // getter和setter
    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getExpiryDate() {
        return expiryDate;
    }

    public void setExpiryDate(String expiryDate) {
        this.expiryDate = expiryDate;
    }
}
    